package com.parenting.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 投诉
 * </p>
 *
 * @author zcj
 * @since 2021-04-30
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@ApiModel(value = "ReportVO对象", description = "投诉")
public class ReportVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "举报内容的ID", required = true)
    @NotNull(message = "举报内容的ID不能为空")
    private Long id;

    @ApiModelProperty(value = "举报内容", required = true)
    @NotBlank(message = "举报内容能为空")
    private String reportContent;

    @ApiModelProperty(value = "举报理由")
    @Length(max = 200, message = "举报理由不能超过200字")
    private String reportReason;

    @ApiModelProperty(value = "上传的文件")
    private List<ReportLinkVO> reportLinkList;

    @ApiModelProperty(value = "广场ID集合（多个使用逗号分割）")
    private String plazaIdList;

    @ApiModelProperty(value = "广场信息集合")
    private List<PlazaCheckInfoVO> plazaInfoList;

    @ApiModelProperty(value = "举报类型 1、用户举报2、内容举报")
    private Integer type;

    @ApiModelProperty(value = "广场标题 举报广场时使用")
    private String plazaTitle;

    @ApiModelProperty(value = "用户昵称 举报用户时使用")
    private String nickname;

    @ApiModelProperty(value = "审批状态1 未审核2已审核 3 已拒绝")
    private String approvalStatus;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "用户id")
    private Long createdById;

}
